<%--
功能：用于显示当前客户的积分情况
 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib tagdir="/WEB-INF/tags/probiz"  prefix="probiz"%>
<%@ taglib tagdir="/WEB-INF/tags/common"  prefix="common"%>
<%@ tag import="org.springframework.context.ApplicationContext" %>
<%@ tag import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ tag import="com.probiz.estore.common.model.customer.ShopPointHistory" %>
<%@ tag import="com.probiz.estore.customer.service.CustomerManager" %>
<%@ tag import="com.probiz.estore.customer.service.ShopPointHistoryManager" %>
<%@ attribute name="customerId" required="true" type="java.lang.Integer" description="客户id"%>
<%@ attribute name="type" required="true" type="java.lang.Short" description="积分类型"%>
<%@ attribute name="entityId" required="true" type="java.lang.Integer" description="发起的实体id"%>
<%
	ApplicationContext ctx =WebApplicationContextUtils.getRequiredWebApplicationContext(session.getServletContext());
	ShopPointHistoryManager shopPointHistoryManager=(ShopPointHistoryManager)ctx.getBean("shopPointHistoryManager");
	ShopPointHistory history=shopPointHistoryManager.getByCustomerIdAndTypeAndEntityId(customerId,type,entityId);
	request.setAttribute("history",history);
%>
<c:if test="${not empty history}">
	<common:htmlEscape returnValue="descriptionHtml" value="${history.description}"/>
	<span class="shopPointTip" title="${descriptionHtml}"></span>
</c:if>